package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.FamilyMemberElder;

import com.zzyl.nursing.vo.FamilyMemberVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FamilyMemberElderMapper extends BaseMapper<FamilyMemberElder> {


    /**
     * 更新绑定
     * @param
     */
   @Insert("insert into family_member_elder (family_member_id, elder_id, remark, create_time, create_by) values(#{familyMemberId}, #{elderId}, #{remark},#{createTime},#{createBy})")
    void updateBindFamily(FamilyMemberElder familyMemberElder);




    /**
     * 获取老人和家属信息
     * @return
     */

    List<FamilyMemberVo> getFamilyMemberList(Long userId);

}
